home *** CD-ROM | disk | FTP | other *** search
/ Crosscountry USA Photo Safari / Crosscountry USA Photo Safari.iso / Data / cc_base / pak00_16bit_f.pk3 / dash_test.gl.p < prev    next >
Text File  |  2002-11-29  |  24KB  |  878 lines

  1. {
  2.  
  3.   ChildID = {
  4.     GuiAnimation("background") {
  5.       X = 0;
  6.       Y = 280;
  7.       ScriptID = Script {
  8.         @draw {
  9.           DrawRect(
  10.             0,
  11.             0,
  12.             CVarGetInt("SCREEN_MAX_X"),
  13.             CVarGetInt("SCREEN_MAX_Y"),
  14.             0,
  15.             0,
  16.             0
  17.           );
  18.         }
  19.       }
  20.     },
  21.      WeatherCenter("weather_center") {
  22.       ScriptID = script {
  23.         @loaded {
  24.           ResPropSetStr(SELF,"season","s");
  25.           ResPropSetStr(SELF,"time_of_day","d");
  26.           ResPropSetStr(SELF,"scenery","field_and_rock");
  27.           ResPropSetStr(SELF,"adornment","barn");
  28.           ResPropSetStr(SELF,"weather","d");
  29.           ResPropSetStr(SELF,"head_lights","l");
  30.         }
  31.         @animate {
  32.  
  33.           resid left;
  34.           resid right;
  35.           resid road;
  36.           resid adornl;
  37.           resid adornr;
  38.           resid adornl_current;
  39.           resid adornr_current;
  40.           resid left_current;
  41.           resid right_current;
  42.           resid road_current;
  43.                     
  44.           str scenery;
  45.           str season;
  46.           str time_of_day;
  47.           str weather;
  48.           str adornment;
  49.           str head_lights;
  50.           
  51.           ResPropAlias(SELF,"scenery","scenery");
  52.           ResPropAlias(SELF,"adornment","adornment");
  53.           ResPropAlias(SELF,"season","season");
  54.           ResPropAlias(SELF,"time_of_day","time_of_day");
  55.           ResPropAlias(SELF,"weather","weather");
  56.           ResPropAlias(SELF,"head_lights","head_lights");
  57.           left_current   = ResPropGetResID(GuiSiblingByName("left_flicker"), "AnimationID");        
  58.           right_current  = ResPropGetResID(GuiSiblingByName("right_flicker"), "AnimationID");
  59.           road_current   = ResPropGetResID(GuiSiblingByName("road"), "AnimationID");
  60.           adornl_current = ResPropGetResID(GuiSiblingByName("left_adorn1"), "AnimationID");
  61.           adornr_current = ResPropGetResID(GuiSiblingByName("right_adorn1"), "AnimationID");
  62.           
  63.           adornl = ResByName(StrFormatStr("anim/adornment/%s%s%s%s%s%s%s", adornment, "/", adornment, "_l", time_of_day, season, ".anm"));
  64.           adornr = ResByName(StrFormatStr("anim/adornment/%s%s%s%s%s%s%s", adornment, "/", adornment, "_r", time_of_day, season, ".anm"));
  65.                 left   = ResByName(StrFormatStr("anim/flicker/%s%s%s%s%s%s%s", scenery, "/", scenery, "_l", time_of_day, season, ".anm"));
  66.           right  = ResByName(StrFormatStr("anim/flicker/%s%s%s%s%s%s%s", scenery, "/", scenery, "_r", time_of_day, season, ".anm"));
  67.           road   = ResByName(StrFormatStr("anim/road/%s_%s%s%s.anm","pavement",time_of_day, weather,head_lights));
  68.           
  69.           if (adornl != adornl_current) {
  70.                       ResPropSetResID(GuiSiblingByName("left_adorn1"), "AnimationID", adornl);
  71.           }
  72.           if (adornr != adornr_current) {
  73.                       ResPropSetResID(GuiSiblingByName("right_adorn1"), "AnimationID", adornr);
  74.           }
  75.                     if (left  != left_current ) {
  76.                       ResPropSetResID(GuiSiblingByName("left_flicker"), "AnimationID", left); 
  77.                     }
  78.                     if (right != right_current) { 
  79.                       ResPropSetResID(GuiSiblingByName("right_flicker"), "AnimationID", right); 
  80.                     }
  81.                     if (road != road_current) {
  82.                       LogStr(LOG_DEBUG,"changing road:%s",road);
  83.                       ResPropSetResID(GuiSiblingByName("road"), "AnimationID", road);                     
  84.                     }
  85.                     
  86.                     
  87.         }
  88.       }
  89.     },
  90.     
  91.     GuiAnimation("sky") {
  92.       AnimationID = "anim/sky/blue.pcx";
  93.       X = 0;
  94.       Y = 0;
  95.     },
  96.     GuiAnimation("horizon") {
  97.       X = 0;
  98.       Y = 0;
  99.     },
  100.     GuiAnimation("left_flicker") {
  101.       X = -13;
  102.       Y = 0;
  103.     
  104.     },
  105.     GuiAnimation("left_adorn1") {
  106.       X = -13;
  107.       Y = 0;
  108.  
  109.     },
  110.     GuiAnimation("left_adorn2") {
  111.       X = -13;
  112.       Y = 0;
  113.    
  114.     },
  115.     
  116.     GuiAnimation("right_flicker") {
  117.       X = 314;
  118.       Y = 0;
  119.  
  120.     },
  121.  
  122.     GuiAnimation("right_adorn1") {
  123.       X = 314;
  124.       Y = 0;
  125.  
  126.     },
  127.  
  128.     GuiAnimation("right_adorn2") {
  129.       X = 314;
  130.       Y = 0;
  131.  
  132.     },
  133.  
  134.    GuiAnimation("road") {
  135.       X = 0;
  136.       Y = 150;
  137.  
  138.     },
  139.     GuiAnimation("sign") {
  140.       X = 321;
  141.       Y = -29;
  142.       State = STOPPED;
  143.       AnimationID = "anim/sign/sign_night.anm";
  144.       ScriptID = Script {
  145.         @loaded {
  146.           ResByName("font/arial_06.tf");
  147.           ResByName("font/arial_08.tf");
  148.           ResByName("font/arial_10.tf");
  149.           ResByName("font/arial_16.tf");
  150.         }
  151.         @animate {
  152.           if (InputKeyCheck(INPUT_S)) {
  153.             ResPropSetInt(SELF,"State", PLAYING);
  154.           } else {
  155.             ResPropSetInt(SELF,"State", STOPPED);
  156.           }
  157.           if (InputKeyCheck(INPUT_R)) {
  158.             ResPropSetInt(SELF,"Direction",REVERSE);
  159.           }
  160.           if (InputKeyCheck(INPUT_F)) {
  161.             ResPropSetInt(SELF,"Direction",FORWARD);
  162.           }
  163.         }
  164.         @draw {
  165.           int frame;
  166.           int x;
  167.           int y;
  168.           str text;
  169.           frame = ResPropGetInt(SELF,"CurrentFrame");
  170.           if (frame<10) {stop;}
  171.           text = "Minneapolis - St. Paul\n999 Miles";
  172.           x = ResPropGetInt(SELF,"ScreenX");
  173.           y = ResPropGetInt(SELF,"ScreenY");
  174.  
  175.           if (frame==13) {
  176.             DrawTextRectStr(ResByName("font/arial_06.tf"), x+40, y+146, 49, 18, "%s", text);
  177.             stop;
  178.           }
  179.           if (frame==14) {
  180.             DrawTextRectStr(ResByName("font/arial_10.tf"), x+50, y+133, 68, 28, "%s", text);
  181.             stop;
  182.           }
  183.           if (frame==15) {
  184.             DrawTextRectStr(ResByName("font/arial_16.tf"), x+73, y+107, 120, 46, "%s", text);
  185.             stop;
  186.           }
  187.  
  188.         }
  189.       }
  190.     },
  191.     GuiAnimation("dash_upper") {
  192.       AnimationID = "anim/dash/day/dash_upper.pcx";
  193.       X = 0;
  194.       Y = 0;
  195.     },
  196.     GuiAnimation("dash_lower") {
  197.       AnimationID = "anim/dash/day/dash_lower.bmp";
  198.       X = 0;
  199.       Y = 236;
  200.     },
  201.    
  202.     
  203.     
  204.  
  205.     GuiButtonGroup("headlights_on") {
  206.       X = 10;
  207.       Y = 120;
  208.       RadioGroupID = 1;
  209.       
  210.       ScriptID = Script {
  211.         @activate {
  212.                     ResPropSetStr(GuiSiblingByName("weather_center"), "head_lights", "l" );
  213.         }
  214.       };
  215.       
  216.       ChildID = {
  217.  
  218.             GuiButton("radio_button_unselected") {
  219.               StyleID = "gui/bs/radiounsel.gbs";
  220.               HorizontalAlign = RIGHTOF;
  221.               TextDownOffsetX = 0;
  222.               TextDownOffsetY = 0;
  223.               HorizontalPadding = 4;
  224.               TextID = Mangle(34/*"Headlights on"*/);
  225.           FontID = "font/square_black_on_gray_9.tf";
  226.               ScriptID = Script {
  227.                 @activate {
  228.                 
  229.                 }
  230.               };
  231.              },          
  232.  
  233.             GuiButton("radio_button_selected") {
  234.               StyleID = "gui/bs/radiosel.gbs";
  235.               HorizontalAlign = RIGHTOF;
  236.               TextDownOffsetX = 0;    
  237.               TextDownOffsetY = 0;                      
  238.               HorizontalPadding = 4;
  239.               TextID = Mangle(35/*"Headlights on"*/);
  240.           FontID = "font/square_black_on_gray_9.tf";                          
  241.               ScriptID = Script {
  242.                 @activate {
  243.                 
  244.                 }
  245.               };
  246.              }        
  247.       };
  248.     },
  249.  
  250.     GuiButtonGroup("headlights_off") {
  251.       X = 10;
  252.       Y = 140;
  253.       RadioGroupID = 1;
  254.       ScriptID = Script {
  255.         @activate { 
  256.                     ResPropSetStr(GuiSiblingByName("weather_center"), "head_lights", "u" );
  257.         }
  258.       };  
  259.       ChildID = {
  260.                 GuiButton("radio_button_unselected") {
  261.               StyleID = "gui/bs/radiounsel.gbs";
  262.               HorizontalAlign = RIGHTOF;
  263.               TextDownOffsetX = 0;    
  264.               TextDownOffsetY = 0;                      
  265.               HorizontalPadding = 4;
  266.               TextID = Mangle(36/*"Headlights off"*/);
  267.           FontID = "font/square_black_on_gray_9.tf";    
  268.               ScriptID = Script {
  269.                 @activate { 
  270.                 
  271.                 }
  272.               };
  273.              },          
  274.  
  275.             GuiButton("radio_button_selected") {
  276.               StyleID = "gui/bs/radiosel.gbs";
  277.               HorizontalAlign = RIGHTOF;
  278.               TextDownOffsetX = 0;    
  279.               TextDownOffsetY = 0;                      
  280.               HorizontalPadding = 4;
  281.               TextID = Mangle(37/*"Headlights off"*/);
  282.           FontID = "font/square_black_on_gray_9.tf";      
  283.               ScriptID = Script {
  284.                 @activate { 
  285.                 
  286.                 }
  287.               };
  288.              }        
  289.       };
  290.     },
  291.  
  292.  
  293.  
  294.  
  295.  
  296.  
  297.  
  298.  
  299.     
  300.     
  301.     
  302.     
  303.     GuiButtonGroup("summer") {
  304.       X = 10;
  305.       Y = 60;
  306.       RadioGroupID = 1;
  307.       
  308.       ScriptID = Script {
  309.         @activate {
  310.                     ResPropSetStr(GuiSiblingByName("weather_center"), "season", "s" );
  311.         }
  312.       };
  313.       
  314.       ChildID = {
  315.  
  316.             GuiButton("radio_button_unselected") {
  317.               StyleID = "gui/bs/radiounsel.gbs";
  318.               HorizontalAlign = RIGHTOF;
  319.               TextDownOffsetX = 0;
  320.               TextDownOffsetY = 0;
  321.               HorizontalPadding = 4;
  322.               TextID = Mangle(38/*"Summer"*/);
  323.           FontID = "font/square_black_on_gray_9.tf";
  324.               ScriptID = Script {
  325.                 @activate {
  326.                 
  327.                 }
  328.               };
  329.              },          
  330.  
  331.             GuiButton("radio_button_selected") {
  332.               StyleID = "gui/bs/radiosel.gbs";
  333.               HorizontalAlign = RIGHTOF;
  334.               TextDownOffsetX = 0;    
  335.               TextDownOffsetY = 0;                      
  336.               HorizontalPadding = 4;
  337.               TextID = Mangle(39/*"Summer"*/);
  338.           FontID = "font/square_black_on_gray_9.tf";                          
  339.               ScriptID = Script {
  340.                 @activate {
  341.                 
  342.                 }
  343.               };
  344.              }        
  345.       };
  346.     },
  347.  
  348.     GuiButtonGroup("winter") {
  349.       X = 10;
  350.       Y = 80;
  351.       RadioGroupID = 1;
  352.       ScriptID = Script {
  353.         @activate { 
  354.                     ResPropSetStr(GuiSiblingByName("weather_center"), "season", "w" );
  355.         }
  356.       };  
  357.       ChildID = {
  358.                 GuiButton("radio_button_unselected") {
  359.               StyleID = "gui/bs/radiounsel.gbs";
  360.               HorizontalAlign = RIGHTOF;
  361.               TextDownOffsetX = 0;    
  362.               TextDownOffsetY = 0;                      
  363.               HorizontalPadding = 4;
  364.               TextID = Mangle(40/*"Winter"*/);
  365.           FontID = "font/square_black_on_gray_9.tf";    
  366.               ScriptID = Script {
  367.                 @activate { 
  368.                 
  369.                 }
  370.               };
  371.              },          
  372.  
  373.             GuiButton("radio_button_selected") {
  374.               StyleID = "gui/bs/radiosel.gbs";
  375.               HorizontalAlign = RIGHTOF;
  376.               TextDownOffsetX = 0;    
  377.               TextDownOffsetY = 0;                      
  378.               HorizontalPadding = 4;
  379.               TextID = Mangle(41/*"Winter"*/);
  380.           FontID = "font/square_black_on_gray_9.tf";      
  381.               ScriptID = Script {
  382.                 @activate { 
  383.                 
  384.                 }
  385.               };
  386.              }        
  387.       };
  388.     },
  389.  
  390.     GuiButtonGroup("day") {
  391.       X = 80;
  392.       Y = 60;
  393.       RadioGroupID = 2;
  394.       ScriptID = Script {
  395.         @activate { 
  396.                     ResPropSetStr(GuiSiblingByName("weather_center"), "time_of_day", "d" );
  397.         }
  398.       };        
  399.       ChildID = {
  400.             GuiButton("radio_button_unselected") {
  401.               StyleID = "gui/bs/radiounsel.gbs";
  402.               HorizontalAlign = RIGHTOF;
  403.               TextDownOffsetX = 0;    
  404.               TextDownOffsetY = 0;                      
  405.               HorizontalPadding = 4;
  406.               TextID = Mangle(42/*"Day"*/);
  407.           FontID = "font/square_black_on_gray_9.tf";                          
  408.               ScriptID = Script {
  409.                 @activate {
  410.                 
  411.                 }
  412.               };
  413.              },          
  414.  
  415.             GuiButton("radio_button_selected") {
  416.               StyleID = "gui/bs/radiosel.gbs";
  417.               HorizontalAlign = RIGHTOF;
  418.               TextDownOffsetX = 0;    
  419.               TextDownOffsetY = 0;                      
  420.               HorizontalPadding = 4;
  421.               TextID = Mangle(43/*"Day"*/);
  422.           FontID = "font/square_black_on_gray_9.tf";                          
  423.               ScriptID = Script {
  424.                 @activate { 
  425.                 
  426.                 }
  427.               };
  428.              }        
  429.       };
  430.     },
  431.  
  432.     GuiButtonGroup("night") {
  433.       X = 80;
  434.       Y = 80;
  435.       RadioGroupID = 2;
  436.       ScriptID = Script {
  437.         @activate { 
  438.                     ResPropSetStr(GuiSiblingByName("weather_center"), "time_of_day", "n" );
  439.         }
  440.       };
  441.       ChildID = {
  442.                 GuiButton("radio_button_unselected") {
  443.               StyleID = "gui/bs/radiounsel.gbs";
  444.               HorizontalAlign = RIGHTOF;
  445.               TextDownOffsetX = 0;    
  446.               TextDownOffsetY = 0;                      
  447.               HorizontalPadding = 4;
  448.               TextID = Mangle(44/*"Night"*/);
  449.           FontID = "font/square_black_on_gray_9.tf";    
  450.               ScriptID = Script {
  451.                 @activate { 
  452.                 }
  453.               };
  454.              },          
  455.  
  456.             GuiButton("radio_button_selected") {
  457.               StyleID = "gui/bs/radiosel.gbs";
  458.               HorizontalAlign = RIGHTOF;
  459.               TextDownOffsetX = 0;    
  460.               TextDownOffsetY = 0;                      
  461.               HorizontalPadding = 4;
  462.               TextID = Mangle(45/*"Night"*/);
  463.           FontID = "font/square_black_on_gray_9.tf";      
  464.               ScriptID = Script {
  465.                 @activate { 
  466.                 }
  467.               };
  468.              }        
  469.       };
  470.     },
  471.  
  472.     GuiButtonGroup("dry") {
  473.       X = 140;
  474.       Y = 60;
  475.       RadioGroupID = 3;
  476.       ScriptID = Script {
  477.         @activate { 
  478.                     ResPropSetStr(GuiSiblingByName("weather_center"), "weather", "d" );    
  479.         }
  480.       };
  481.       ChildID = {
  482.                 GuiButton("radio_button_unselected") {
  483.               StyleID = "gui/bs/radiounsel.gbs";
  484.               HorizontalAlign = RIGHTOF;
  485.               TextDownOffsetX = 0;    
  486.               TextDownOffsetY = 0;                      
  487.               HorizontalPadding = 4;
  488.               TextID = Mangle(46/*"Dry"*/);
  489.           FontID = "font/square_black_on_gray_9.tf";    
  490.               ScriptID = Script {
  491.                 @activate { 
  492.                 }
  493.               };
  494.              },          
  495.  
  496.             GuiButton("radio_button_selected") {
  497.               StyleID = "gui/bs/radiosel.gbs";
  498.               HorizontalAlign = RIGHTOF;
  499.               TextDownOffsetX = 0;    
  500.               TextDownOffsetY = 0;                      
  501.               HorizontalPadding = 4;
  502.               TextID = Mangle(47/*"Dry"*/);
  503.           FontID = "font/square_black_on_gray_9.tf";      
  504.               ScriptID = Script {
  505.                 @activate { 
  506.                 }
  507.               };
  508.              }        
  509.       };
  510.     },
  511.  
  512.     GuiButtonGroup("wet") {
  513.       X = 140;
  514.       Y = 80;
  515.       RadioGroupID = 3;
  516.       ScriptID = Script {
  517.         @activate { 
  518.                     ResPropSetStr(GuiSiblingByName("weather_center"), "weather", "d" );    
  519.         }
  520.       };
  521.       ChildID = {
  522.                 GuiButton("radio_button_unselected") {
  523.               StyleID = "gui/bs/radiounsel.gbs";
  524.               HorizontalAlign = RIGHTOF;
  525.               TextDownOffsetX = 0;    
  526.               TextDownOffsetY = 0;                      
  527.               HorizontalPadding = 4;
  528.               TextID = Mangle(48/*"Wet"*/);
  529.           FontID = "font/square_black_on_gray_9.tf";    
  530.               ScriptID = Script {
  531.                 @activate { 
  532.                 }
  533.               };
  534.              },          
  535.  
  536.             GuiButton("radio_button_selected") {
  537.               StyleID = "gui/bs/radiosel.gbs";
  538.               HorizontalAlign = RIGHTOF;
  539.               TextDownOffsetX = 0;    
  540.               TextDownOffsetY = 0;                      
  541.               HorizontalPadding = 4;
  542.               TextID = Mangle(49/*"Wet"*/);
  543.           FontID = "font/square_black_on_gray_9.tf";      
  544.               ScriptID = Script {
  545.                 @activate { 
  546.                 }
  547.               };
  548.              }        
  549.       };
  550.     },
  551.  
  552.  
  553.     GuiButtonGroup("snow") {
  554.       X = 140;
  555.       Y = 100;
  556.       RadioGroupID = 3;
  557.       ScriptID = Script {
  558.         @activate { 
  559.                     ResPropSetStr(GuiSiblingByName("weather_center"), "weather", "s" );    
  560.         }
  561.       };
  562.       ChildID = {
  563.                 GuiButton("radio_button_unselected") {
  564.               StyleID = "gui/bs/radiounsel.gbs";
  565.               HorizontalAlign = RIGHTOF;
  566.               TextDownOffsetX = 0;    
  567.               TextDownOffsetY = 0;                      
  568.               HorizontalPadding = 4;
  569.               TextID = Mangle(50/*"Snow"*/);
  570.           FontID = "font/square_black_on_gray_9.tf";    
  571.               ScriptID = Script {
  572.                 @activate { 
  573.                 }
  574.               };
  575.              },          
  576.  
  577.             GuiButton("radio_button_selected") {
  578.               StyleID = "gui/bs/radiosel.gbs";
  579.               HorizontalAlign = RIGHTOF;
  580.               TextDownOffsetX = 0;    
  581.               TextDownOffsetY = 0;                      
  582.               HorizontalPadding = 4;
  583.               TextID = Mangle(51/*"Snow"*/);
  584.           FontID = "font/square_black_on_gray_9.tf";      
  585.               ScriptID = Script {
  586.                 @activate { 
  587.                 }
  588.               };
  589.              }        
  590.       };
  591.     },
  592.  
  593.  
  594.  
  595.     GuiListbox("flickers") {
  596.       X      = 10;
  597.       Y      = 300;
  598.       Height = 180;
  599.       Width  = 180;
  600.       ListHilightedColor = #7FAFFF;
  601.       
  602.       ScriptID = Script {
  603.         @activate {
  604.          str tmp;
  605.          tmp = GuiListboxGetSelected(SELF);
  606.          ResPropSetStr(GuiSiblingByName("weather_center"), "scenery", tmp );
  607.         }
  608.       };
  609.       StrListID = StrList {
  610.         Size = 10240;
  611.         List = {
  612.          "field_and_rock", 
  613.          "cornfield", 
  614.          "forest", 
  615.          "shoreline",
  616.          "wheatfield",
  617.          "valley2",
  618.          "bridge",
  619.          "distant_forest",
  620.          "rutted_field",
  621.          "marsh",
  622.          "badlands",
  623.          "bn_grass_field",
  624.          "downtown",
  625.          "grass_field",
  626.          "canola_field",
  627.          "canal",
  628.          "cliffs",
  629.          "hilly_sides",
  630.          "suburbs",
  631.          "tundra",
  632.          "l_industrial",
  633.          "muddy_field",
  634.          "d_forest"
  635.         };
  636.       };
  637.  
  638.       ChildID = {
  639.         GuiScrollBar ("sb") {
  640.           Kind = VERTICAL;
  641.           ChildID = {
  642.             GuiButton("thumb") {
  643.               StyleID = "gui/square/scrollbar/sb_thumb.gbs";
  644.             },
  645.             GuiButton("dec") {
  646.               StyleID = "gui/square/scrollbar/sb_uarrow.gbs";
  647.             },
  648.             GuiButton("inc") {
  649.               StyleID = "gui/square/scrollbar/sb_darrow.gbs";
  650.             }
  651.           };
  652.         }
  653.       };
  654.     },
  655.  
  656.  
  657.     GuiListbox("adornments") {
  658.       X      = 200;
  659.       Y      = 300;
  660.       Height = 180;
  661.       Width  = 180;
  662.       ListHilightedColor = #7FAFFF;
  663.       
  664.       ScriptID = Script {
  665.         @activate {
  666.          str tmp;
  667.          tmp = GuiListboxGetSelected(SELF);
  668.          ResPropSetStr(GuiSiblingByName("weather_center"), "adornment", tmp );
  669.         }
  670.       };
  671.       StrListID = StrList {
  672.         Size = 10240;
  673.         List = {
  674.          "barn",
  675.          "barrier",
  676.          "barrier1",
  677.          "barrier2",
  678.          "bush",
  679.          "bush_dry",
  680.          "cattle",
  681.          "combine",
  682.          "cows",
  683.          "fence1",
  684.          "fence2",
  685.          "fence3",
  686.          "fir_bunch",
  687.          "freighter",
  688.          "house",
  689.          "house1",
  690.          "house2",
  691.          "lone_fir",
  692.          "lone_fir_bare",
  693.          "lone_maple",
  694.          "maple_bunch",
  695.          "moose",         
  696.          "railroad_tracks",
  697.          "sailboat",
  698.          "silo",
  699.          "null"
  700.         };
  701.       };
  702.  
  703.       ChildID = {
  704.         GuiScrollBar ("sb") {
  705.           Kind = VERTICAL;
  706.           ChildID = {
  707.             GuiButton("thumb") {
  708.               StyleID = "gui/square/scrollbar/sb_thumb.gbs";
  709.             },
  710.             GuiButton("dec") {
  711.               StyleID = "gui/square/scrollbar/sb_uarrow.gbs";
  712.             },
  713.             GuiButton("inc") {
  714.               StyleID = "gui/square/scrollbar/sb_darrow.gbs";
  715.             }
  716.           };
  717.         }
  718.       };
  719.     },
  720.  
  721.         GuiTextInput("lf_offset_x") {
  722.       X = 520;
  723.       Y = 300;
  724.       Width = 185;
  725.       Height = 20;
  726.       TextX = -105;
  727.       TextID = Mangle(52/*"left flicker offset x:"*/); 
  728.       FontID = "font/verdana_9.tf";
  729.       ScriptID = Script {
  730.         @animate {
  731.           resid lfx;
  732.           lfx = ResPropGetResID(GuiSiblingByName("left_flicker"),"AnimationID");
  733.           ResPropSetStr(SELF,"InputText",IntToStr(ResPropGetInt(lfx,"OffsetX")) );
  734.         }
  735.       };
  736.     },
  737.  
  738.         GuiTextInput("lf_offset_y") {
  739.       X = 520;
  740.       Y = 320;
  741.       Width = 185;
  742.       Height = 20;
  743.       TextX = -105;
  744.       TextID = Mangle(53/*"left flicker offset y:"*/);      
  745.       FontID = "font/verdana_9.tf";
  746.       ScriptID = Script {
  747.         @animate {
  748.           resid lfy;
  749.           lfy = ResPropGetResID(GuiSiblingByName("left_flicker"),"AnimationID");
  750.           ResPropSetStr(SELF,"InputText",IntToStr(ResPropGetInt(lfy,"OffsetY")) );
  751.         }
  752.       };
  753.     },
  754.     
  755.  
  756.         GuiTextInput("la_offset_x") {
  757.       X = 520;
  758.       Y = 340;
  759.       Width = 185;
  760.       Height = 20;
  761.       TextX = -105;
  762.       TextID = Mangle(54/*"left adorn offset x:"*/);      
  763.       FontID = "font/verdana_9.tf";
  764.       ScriptID = Script {
  765.         @animate {
  766.           resid la;
  767.           la = ResPropGetResID(GuiSiblingByName("left_adorn1"),"AnimationID");
  768.           ResPropSetStr(SELF,"InputText",IntToStr(ResPropGetInt(la,"OffsetX")) );
  769.         }
  770.       };
  771.     },
  772.     
  773.         GuiTextInput("la_offset_y") {
  774.       X = 520;
  775.       Y = 360;
  776.       Width = 185;
  777.       Height = 20;
  778.       TextX = -105;
  779.       TextID = Mangle(55/*"left adorn offset y:"*/);      
  780.       FontID = "font/verdana_9.tf";
  781.       ScriptID = Script {
  782.         @animate {
  783.           resid la;
  784.           la = ResPropGetResID(GuiSiblingByName("left_adorn1"),"AnimationID");
  785.           ResPropSetStr(SELF,"InputText",IntToStr(ResPropGetInt(la,"OffsetY")) );
  786.         }
  787.       };
  788.     },    
  789.     
  790.     
  791.         GuiTextInput("ra_offset_x") {
  792.       X = 520;
  793.       Y = 380;
  794.       Width = 185;
  795.       Height = 20;
  796.       TextX = -105;
  797.       TextID = Mangle(56/*"right adorn offset x:"*/);      
  798.       FontID = "font/verdana_9.tf";
  799.       ScriptID = Script {
  800.         @animate {
  801.           resid ra;
  802.           ra = ResPropGetResID(GuiSiblingByName("right_adorn1"),"AnimationID");
  803.           ResPropSetStr(SELF,"InputText",IntToStr(ResPropGetInt(ra,"OffsetX")) );
  804.         }
  805.       };
  806.     },
  807.  
  808.         GuiTextInput("ra_offset_y") {
  809.       X = 520;
  810.       Y = 400;
  811.       Width = 185;
  812.       Height = 20;
  813.       TextX = -105;
  814.       TextID = Mangle(57/*"right adorn offset y:"*/);      
  815.       FontID = "font/verdana_9.tf";
  816.       ScriptID = Script {
  817.         @animate {
  818.           resid ra;
  819.           ra = ResPropGetResID(GuiSiblingByName("right_adorn1"),"AnimationID");
  820.           ResPropSetStr(SELF,"InputText",IntToStr(ResPropGetInt(ra,"OffsetY")) );
  821.         }
  822.       };
  823.     },
  824.         GuiTextInput("rf_offset_x") {
  825.       X = 520;
  826.       Y = 420;
  827.       Width = 185;
  828.       Height = 20;
  829.       TextX = -105;
  830.       TextID = Mangle(58/*"right flicker offset x:"*/); 
  831.       FontID = "font/verdana_9.tf";
  832.       ScriptID = Script {
  833.         @animate {
  834.           resid lfx;
  835.           lfx = ResPropGetResID(GuiSiblingByName("right_flicker"),"AnimationID");
  836.           ResPropSetStr(SELF,"InputText",IntToStr(ResPropGetInt(lfx,"OffsetX")) );
  837.         }
  838.       };
  839.     },
  840.  
  841.         GuiTextInput("rf_offset_y") {
  842.       X = 520;
  843.       Y = 440;
  844.       Width = 185;
  845.       Height = 20;
  846.       TextX = -105;
  847.       TextID = Mangle(59/*"right flicker offset y:"*/);      
  848.       FontID = "font/verdana_9.tf";
  849.       ScriptID = Script {
  850.         @animate {
  851.           resid lfy;
  852.           lfy = ResPropGetResID(GuiSiblingByName("right_flicker"),"AnimationID");
  853.           ResPropSetStr(SELF,"InputText",IntToStr(ResPropGetInt(lfy,"OffsetY")) );
  854.         }
  855.       };
  856.     },
  857.     
  858.     GuiButton("main_menu") {
  859.       X = 10;
  860.       Y = 10;
  861.       TextID = Mangle(60/*"Main Menu"*/);
  862.       StyleID = "gui/bs/square.gbs";
  863.       FontID = "font/square_black_on_gray_9.tf";
  864.       Width = 150;
  865.       AutoSize = HEIGHT;
  866.       ScriptID = Script {
  867.         @activate { 
  868.           release("floor");
  869.           mark("floor");
  870.           ResByName("splash_screen.gl");
  871.         }
  872.       };
  873.     }
  874.     
  875.  
  876.   };
  877. }
  878.